# locust777


//结构体


#include<stdio.h>
#include<windows.h>


	//设置
	//借书结构体

	struct book 
	{
		char name[20];
		int number[100];
		int day[10];
	}s1 = {"小黑子",19919919919,30};

	//成绩结构体
	struct test
	{
		char name[20];
		float score[100];
		float day[20];
	
	}t1= {"太美",100.0,6.0};

	//struct test t1;

	//借款
	struct led
	{
		char name[20];
		int day[10];
		float money[50];
	
	}lend= {"坤坤",2,50000.0};


int main()
{
//	//存放
//	s1 = {"小黑子",199,30};
//
//	t1= {"太美",100,6};
///*	strcpy(t1.name,"太美");
//	t1.score = 100;
//	t1.day = 20*/;
//
//	lend= {"坤坤",2,50000};
	//打印

	printf("%s %d %d\n",s1.name,s1.number,s1.day);

	printf("%s %f %f\n",t1.name,t1.score,t1.day);

	printf("%c %d %f\n",lend.name,lend.day,lend.money);


system("pause");
return 0;
}
